<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
        <title>Add Quotation Status</title>
    </h:head>
    <f:view beforePhase="#{UserDisplayManagedBean.doDisplay}">
        <h:body>
            <h:form>
                <!-- IDLE DIALOG for -->
                <p:confirmDialog message="You have been idle for 5 minutes. Do you want to continue?"  
                                 showEffect="bounce" hideEffect="explode"  
                                 header="Warning message" severity="alert" widgetVar="confirmation">  
                    <p:commandButton value="Yes" onclick="confirmation.hide()" type="button" /> 
                    <p:commandButton value="No" update="panel" oncomplete="confirmation.hide()"  
                                     actionListener="#{UserManagedBean.doLogout}" /> 
                </p:confirmDialog>

                <p:idleMonitor timeout="300000" onidle="confirmation.show()" />  
                <!--END OF IDLE DIALOG-->

                <p:growl id="msgs" showDetail="true"/>
                <p:growl id="notif" showDetail="true"/>
                <div id="top" class="top">
                    <h:graphicImage value="/image/newHeader.jpg"/>
                </div>

                <div id="content">
                    <p:poll interval="5"   
                            actionListener="#{MessageManagedBean.checkNewMessage}" immediate="true" update="notif" />
                    <table>
                        <tr>
                            <td>
                                <p:toolbar style="font-size:12px;margin-top:0%;height:30px;width:200px"> 
                                    <p:toolbarGroup align="right" >
                                        <p:button title="Home" image="ui-icon-home" outcome="SalesDeptWorkspace"/>                                  
                                        <p:button title="Notes" image="ui-icon-note" outcome="tasks"/>                                    
                                        <p:button title="Mail" outcome="messages" image="ui-icon-mail-closed"/>                                    
                                        <p:button title="Edit Preferences" image="ui-icon-gear"/>                                   
                                        <p:button title="Help" image="ui-icon-help"/>
                                        <p:commandButton title="Log Out" immediate="true" type="submit" image="ui-icon-close" actionListener="#{UserManagedBean.doLogout}"/> 
                                    </p:toolbarGroup>
                                </p:toolbar></td>
                            <td> <h:graphicImage value="doc_added.png" style="width:40px;height:40px" />
                                <h:outputText value="         "/>
                                <h:outputText value="New Quotation" style="font-family:Tahoma;font-size:20px;font-weight:bolder"/>
                                <p:spacer width="100" height="10"/></td>

                        </tr>
                        <tr>
                            <td style="vertical-align:top">
                                <p:menu style="width:200px;font-size: 12px;font-family: Tahoma;border-style: ridge">  
                                    <p:submenu label="Sales Force Automation" >  
                                        <p:menuitem value="Customers" url="http://localhost:8080/MerlionERP-war/CRM/customers.xhtml" ajax="false" icon="ui-icon ui-icon-person"/>  
                                        <p:menuitem value="Contacts" url="http://localhost:8080/MerlionERP-war/CRM/contacts.xhtml" ajax="false" icon="ui-icon ui-icon-person" />
                                        <p:menuitem value="Leads" url="http://localhost:8080/MerlionERP-war/CRM/salesLeads.xhtml" ajax="false" icon="ui-icon ui-icon-person" />
                                    </p:submenu>
                                    <p:submenu label="Sales Order Processing">
                                        <p:menuitem value="Pricebooks" url="http://localhost:8080/MerlionERP-war/CRM/pricebooks.xhtml" ajax="false" icon="ui-icon ui-icon-document"/>
                                        <p:menuitem value="Inquiries" url="http://localhost:8080/MerlionERP-war/CRM/salesInquiries.xhtml" ajax="false" icon="ui-icon ui-icon-document"/>
                                        <p:menuitem value="Quotations" url="http://localhost:8080/MerlionERP-war/CRM/quotations.xhtml" ajax="false" icon="ui-icon ui-icon-document"/>
                                        <p:menuitem value="Purchase Orders" url="http://localhost:8080/MerlionERP-war/CRM/purchaseOrders.xhtml" ajax="false" icon="ui-icon ui-icon-document"/>
                                        <p:menuitem value="Sales Orders" url="http://localhost:8080/MerlionERP-war/CRM/salesOrders.xhtml" ajax="false" icon="ui-icon ui-icon-document"/>
                                        <p:menuitem value="Delivery Orders" url="http://localhost:8080/MerlionERP-war/CRM/deliveryOrdersCRM.xhtml" ajax="false" icon="ui-icon ui-icon-document"/>
                                    </p:submenu>  
                                </p:menu>
                                <p:menu type="tiered" style="width:200px;font-family:Tahoma;font-size:12px">
                                    <p:submenu label="Create New" icon="ui-icon ui-icon-extlink">  
                                        <p:menuitem value="Customer" url="http://localhost:8080/MerlionERP-war/CRM/createNewCustomer.xhtml" />
                                        <p:menuitem value="Sales Lead" url="http://localhost:8080/MerlionERP-war/CRM/createNewSalesLead.xhtml" /> 
                                        <p:menuitem value="Contact" url="http://localhost:8080/MerlionERP-war/CRM/createNewContact.xhtml" />
                                        <p:menuitem value="Inquiry" url="http://localhost:8080/MerlionERP-war/CRM/addSalesInquiry.xhtml"/>
                                        <p:menuitem value="Quotation" url="http://localhost:8080/MerlionERP-war/CRM/addQuotation.xhtml"/>
                                        <p:menuitem value="Purchase Order" url="http://localhost:8080/MerlionERP-war/CRM/addPurchaseOrder.xhtml"/>
                                        <p:menuitem value="Sales Order" url="http://localhost:8080/MerlionERP-war/CRM/addSalesOrder.xhtml"/>
                                        <p:menuitem value="Delivery Order" url="http://localhost:8080/MerlionERP-war/CRM/addDeliveryOrder.xhtml"/>      
                                    </p:submenu>
                                </p:menu>
                                <p:calendar mode="inline" style="font-size:11px;font-family:Tahoma"/>
                            </td>

                            <td style="vertical-align:top">
                                <p:panel header="Add Quotation Status" style="width:1090px;font-size: 12px;font-family: Tahoma;font-weight:bold;border-style: ridge" >

                                    <p:graphicImage value="check.png" style="width:35px; height:35px"/>
                                    <h:outputText value="You have successfully added a new quotation to Merlion's database!" />

                                </p:panel>
                                <p:panel style="text-align: right;border-style:hidden">
                                    <p:button style="font-family: Tahoma;font-size: 12px;font-weight:bold" value="Add new quotation" outcome="addQuotation" image="ui-icon-plus" />
                                    <p:button style="font-family: Tahoma;font-size: 12px;font-weight:bold" value="Quotation Home" outcome="quotations" image="ui-icon-home"/>
                                </p:panel>
                            </td>
                        </tr>
                    </table>


                </div>
                <div id="bottom" class="bottom">
                    <h:graphicImage value="/image/merlionfooter.jpg"/>
                </div>
            </h:form>

        </h:body>
    </f:view>
</html>